import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import render from '@dfeidao/atom-web/render/render';
import p002 from './p002';

export default async function a005(fd: IFeidaoAiBrowserComponent) {
	// todo
	const department_no1=fd.data.node.querySelector<HTMLSelectElement>("[data-id='department_no']");
	const department_no =department_no1.value;
	const res = await nodejs<{d1:Array<{project_no:string,project_name:string}>}>("test-web/zj-000002/s002",{
		filter:{
			equip_depart_no:department_no
		}
	})
	render(fd,res.d1,p002,'p002','inner');
 }
